package com.github.blanexie.nexusj.table

import org.ktorm.schema.*

/*****************************************************/


object User : Table<Nothing>("user") {
    var id = int("id").primaryKey()
    var email = varchar("email")
    var pwd = varchar("pwd")
    var sex = int("sex")
    var nick = varchar("nick")
    var avatar = varchar("avatar")

    var roleId = int("role_id")

    //上传量, 有效的上传量, 汇总的
    var upload = long("upload")
    //下载量, 有效的下载量, 汇总的
    var download = long("download")

    // 积分的大小,
    var integral = long("integral")

    var createTime = datetime("create_time")
    var updateTime = datetime("update_time")
    var status = int("status")

}